package com.ruoyi.system.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.MyCurriculmVitaeWorkAwardMapper;
import com.ruoyi.system.domain.MyCurriculmVitaeWorkAward;
import com.ruoyi.system.service.IMyCurriculmVitaeWorkAwardService;

/**
 * 获奖Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-07-12
 */
@Service
public class MyCurriculmVitaeWorkAwardServiceImpl implements IMyCurriculmVitaeWorkAwardService 
{
    @Autowired
    private MyCurriculmVitaeWorkAwardMapper myCurriculmVitaeWorkAwardMapper;

    /**
     * 查询获奖
     * 
     * @param id 获奖主键
     * @return 获奖
     */
    @Override
    public MyCurriculmVitaeWorkAward selectMyCurriculmVitaeWorkAwardById(Long id)
    {
        return myCurriculmVitaeWorkAwardMapper.selectMyCurriculmVitaeWorkAwardById(id);
    }

    /**
     * 查询获奖列表
     * 
     * @param myCurriculmVitaeWorkAward 获奖
     * @return 获奖
     */
    @Override
    public List<MyCurriculmVitaeWorkAward> selectMyCurriculmVitaeWorkAwardList(MyCurriculmVitaeWorkAward myCurriculmVitaeWorkAward)
    {
        return myCurriculmVitaeWorkAwardMapper.selectMyCurriculmVitaeWorkAwardList(myCurriculmVitaeWorkAward);
    }

    /**
     * 新增获奖
     * 
     * @param myCurriculmVitaeWorkAward 获奖
     * @return 结果
     */
    @Override
    public int insertMyCurriculmVitaeWorkAward(MyCurriculmVitaeWorkAward myCurriculmVitaeWorkAward)
    {
        return myCurriculmVitaeWorkAwardMapper.insertMyCurriculmVitaeWorkAward(myCurriculmVitaeWorkAward);
    }

    /**
     * 修改获奖
     * 
     * @param myCurriculmVitaeWorkAward 获奖
     * @return 结果
     */
    @Override
    public int updateMyCurriculmVitaeWorkAward(MyCurriculmVitaeWorkAward myCurriculmVitaeWorkAward)
    {
        myCurriculmVitaeWorkAward.setUpdateTime(DateUtils.getNowDate());
        return myCurriculmVitaeWorkAwardMapper.updateMyCurriculmVitaeWorkAward(myCurriculmVitaeWorkAward);
    }

    /**
     * 批量删除获奖
     * 
     * @param ids 需要删除的获奖主键
     * @return 结果
     */
    @Override
    public int deleteMyCurriculmVitaeWorkAwardByIds(Long[] ids)
    {
        return myCurriculmVitaeWorkAwardMapper.deleteMyCurriculmVitaeWorkAwardByIds(ids);
    }

    /**
     * 删除获奖信息
     * 
     * @param id 获奖主键
     * @return 结果
     */
    @Override
    public int deleteMyCurriculmVitaeWorkAwardById(Long id)
    {
        return myCurriculmVitaeWorkAwardMapper.deleteMyCurriculmVitaeWorkAwardById(id);
    }
}
